for i in range(27, 1533):
    dict = {}
    file_path = '../gate_pass_info/gate_pass_info_{}'.format(i)
    with open(file_path, 'r', encoding='utf8') as f:
        for line in f:
            line = line.replace('\n', '')
            line_split = line.split(',')
            secret_card = line_split[-1]
            if secret_card not in dict:
                dict[secret_card] = set()
            dict[secret_card].add('{}@{}'.format(line_split[-3], line_split[-2]))
            if len(dict[secret_card]) > 1:
                print('{} is not unique, dict is {}'.format(secret_card, dict[secret_card]))
    print('{} finish'.format(file_path))